package com.sgb.kjwl.view.ui.adapter.chat;

import android.content.Context;

import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ItemContentNoticeListBinding;
import com.sgb.kjwl.model.entity.chat.NewsNoticeContentEntity;
import com.sgb.kjwl.view.ui.adapter.map.BaseRecycleAdapter;
import com.sgb.kjwl.view.ui.adapter.map.ItemViewHolder;

import java.util.List;

public class ContentNoticeAdapter extends BaseRecycleAdapter<NewsNoticeContentEntity.ContentDTO> {

    public ContentNoticeAdapter(Context context, List<NewsNoticeContentEntity.ContentDTO> data) {
        super(context, R.layout.item_content_notice_list, data);
    }

    @Override
    public void convert(ItemViewHolder holder, NewsNoticeContentEntity.ContentDTO contentDTO) {
        ItemContentNoticeListBinding binding = (ItemContentNoticeListBinding) holder.getmBinding();
        binding.tvContent.setText(contentDTO.getKey() + ":   " + contentDTO.getValue());
    }
}
